using System;
using System.Collections.Generic;
using System.Text;

namespace Genetic_Tetris
{
    public class Move : IComparable<Move>
    {
        int column;
        Piece piece;
        Board result;
        double fitness;


        public int Column
        {
            get { return column; }
            set { column = value; }
        }


        public Piece Piece
        {
            get { return piece; }
            set { piece = value; }
        }
        public Board ResultingBoard
        {
            get { return result; }
            set { result = value; }
        }


        public double Fitness
        {
            get { return fitness; }
            set { fitness = value; }
        }
        public Move()
        {
        }

        #region IComparable<Move> Members

        public int CompareTo(Move other)
        {
            return (int)(other.Fitness - this.Fitness);
        }

        #endregion
    }
}
